import "babel-polyfill" // 兼容ie8以上浏览器，zhanglognfei 2020.1.9
import Vue from "vue"
import "normalize.css/normalize.css" // A modern alternative to CSS resets
import ElementUI from "element-ui"
import "element-ui/lib/theme-chalk/index.css"
import i18n from "@tapui/lang" // internationalization
import "@tapui/styles/common.scss"
import "animate.css"
import App from "./App"
import router from "@tapui/router"
import "./router"
import store from "@tapui/store"
// import './store'
import "@tapui/router/merge"
import "@tapui/icons" // icon
import "@/icons" // icon
import "@tapui/permission" // permission control
import "@tapui/filter"
import "@tapui/directive"
import "@tapui/utils/topscomm"
import "@tapui/fonts/iconfont.css"
import TapUI from "tap-ui"
import misui from "mis-ui"
import "./styles/main.scss"

store.dispatch("ChangeLoginType", 2)
store.dispatch("ChangeWebSite", {
  indexTitle: "系统功能",
  indexSvg: "logo",
  breadcrumb: "工程项目管理系统",
  firstPage: {
    // 默认系统首页
    title: "首页",
    value: "/dashboard"
  }
})
store.dispatch("setDefaultTheme", "#014c7e")
store.dispatch("setDefaultSize", "mini")
Vue.use(ElementUI, {
  size: store.getters.size, // set element-ui default size
  i18n: (key, value) => i18n.t(key, value)
})
Vue.config.productionTip = false
store.commit("SET_RECOMMANDCOLOR", [
  "#409EFF",
  "#FF5151",
  "#FE8B3A",
  "#E626FF",
  "#0F9A9F",
  "#CCBC45",
  "#55CC45",
  "#ccc"
])

TapUI.install(Vue)
misui.install(Vue)

new Vue({
  el: "#app",
  router,
  store,
  i18n,
  render: h => h(App)
})
